home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000180_icon-group-sender _Fri Aug 9 08:49:16 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 12 Aug 1996 08:17:10 MST
Date: Fri, 9 Aug 1996 08:49:16 -0500
From: jeffery@dragon.cs.utsa.edu (Clinton Jeffery)
Message-Id: <9608091349.AA24649@water.cs.utsa.edu>
To: cdt@post.its.mcw.edu
Cc: icon-group@cs.arizona.edu
In-Reply-To: <Pine.ULT.3.90.960808145431.22371A-100000@post.its.mcw.edu> (cdt@post.its.mcw.edu)
Subject: Re: CGI Tips
Content-Length: 1194
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
[Chris Tenaglia posted a CGI scripting question.]
Well, one tip I think I have for you is that I don't think the name=fred part
comes to your program as a command line argument, I think it comes via an
environment variable ("name") being set to a value ("fred").
But there is something more basic you are up against before you get to that
point, since your Icon program is never running. Perhaps your httphome
program or your iconx interpreter isn't set to allow everyone to execute it;
CGI scripts are executed by a web server process; usually its userid and
permissions are different than any regular user. Or, depending on how your
web server is configured, its conceivable that the iconx binary might need
to be in the cgi-bin directory (that one is a long shot). Also, the "path"
and environment variables (such as ICONX) you use won't be present
when the web server process tries to execute your script, so you may
need to give explicit paths. Lastly, if you try to do this whole CGI
thing based on local files read using a web browser, it won't work; the
CGI mechanism really depends on using a web server and interprocess
communication, which makes it a pain to test and setup.